build() {
export CFLAGS="$RPM_OPT_FLAGS -fPIE -I/usr/include/musl -I/usr/musl/include" LDFLAGS="-Wl,-z,now"

cp %{SOURCE4} .config
yes "" | make oldconfig && \
cat .config && \
make V=1 %{?_smp_mflags} CC="musl-gcc -static $RPM_OPT_FLAGS"

cp busybox_unstripped busybox.dynamic
cp docs/busybox.1 docs/busybox.dynamic.1

make clean
export CFLAGS="$RPM_OPT_FLAGS -fPIE" LDFLAGS="-Wl,-z,now"

cp %{SOURCE2} .config
yes "" | make oldconfig
cat .config && \
make V=1 %{?_smp_mflags} CC="%__cc $RPM_OPT_FLAGS"

cp busybox_unstripped busybox.petitboot
cp docs/busybox.1 docs/busybox.petitboot.1

}